package com.alinesno.cloud.base.notice;

import org.apache.dubbo.config.spring.context.annotation.DubboComponentScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.data.jpa.repository.config.EnableJpaAuditing;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.scheduling.annotation.EnableAsync;

import com.alinesno.cloud.common.core.auto.EnableCore;
import com.alinesno.cloud.common.core.auto.EnableDubboScan;
import com.alinesno.cloud.common.web.basic.auth.enable.EnableHttpBasicAuth;
import com.alinesno.cloud.common.web.basic.auth.enable.ScanPackage;

/**
 * 启动入口
 * 
 * @author WeiXiaoJin
 * @since 2018-12-16 18:12:212
 */
@EnableDubboScan
@EnableJpaAuditing // jpa注解支持
@EnableAsync // 开启异步任务
@DubboComponentScan
@EnableHttpBasicAuth
@EnableCore
@EntityScan({ScanPackage.BASIC_BACKENTITY , "com.alinesno.cloud.base.notice.entity"})
@EnableJpaRepositories({ScanPackage.BASIC_BACKREPOSITORY , "com.alinesno.cloud.base.notice.repository"}) 
@SpringBootApplication(scanBasePackages = {"com.alinesno.cloud.base.notice"})
public class BaseNoticeApplication {

	public static void main(String[] args) {
		SpringApplication.run(BaseNoticeApplication.class, args);
	}
}
